package cn.bdqn.mapper;

import cn.bdqn.domain.Receipt;
import cn.bdqn.domain.SendFreight;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 回执单接口
 * @author dkj
 */
public interface ReceiptMapper {


    /**
     * 根据id查询
     * @param id
     * @return
     */
    Receipt selectByPrimaryKey(Integer id);


    /**
     * 根据发货单号模糊查询
     * @param sendFreights
     * @param state
     * @return
     */
    public List<Receipt> selectBySendFreightId(@Param("sendFreights") List<SendFreight> sendFreights,
                                               @Param("state") Integer state);


    /**
     * 新增
     * @param receipt
     */
    public void insertReceipt(Receipt receipt);


    /**
     * 修改当前对象
     * @param receipt
     */
    public void updateReceipt(Receipt receipt);



}
